﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Way.Bus.Controllers;
using System.Data;
using Way.EAP.DataAccess.Data;
using Way.EAP.DataAccess.Regulation;
using Way.Contract.Data.ControllerData;

namespace Way.Bus.WMS.ST.Controllers.Reports
{
    class EmployeeKPIController : ReportBaseController
    {
        //[WhereParameter]
        //public string tt { set; get; }
        //[WhereParameter]
        //public DateTime t2 { set; get; }
        //[WhereParameter]
        //public bool t3 { set; get; }
        public override System.Data.DataTable GetTable(string tableName, List<EAP.DataAccess.Regulation.SQLWhere> whereList)
        {
            DataTable t = base.GetTable("v_employeekpireport", whereList);
            //IDataAction action = this.model.GetDataAction();
            //loadItem item = new loadItem();
            //item.whereList = whereList.ToArray();
            //string where=this.GetWhereString(
            //if (where != "")
            //    where = "where " + where;
            
            //string sql = "select * from v_employeekpireport " + where;
            //t = action.GetDataTable(sql);
            return t;
        }
        protected override void OnSetParam(WhereParameter param)
        {
            //if (param.field == "tt")
            //{
            //    param.name = "123";
            //    param.title = "455";
            //}
            //if (param.field == "t2")
            //{
            //    param.name = "123";
            //    param.title = "时间";
            //    param.wType = WhereParameter.WhereType.DateTime;
            //}
            //if (param.field == "t3")
            //{
            //    param.name = "123";
            //    param.title = "是否";
            //    param.wType = WhereParameter.WhereType.ComBox;
            //    param.comboxvalue = "[{ \"Text\": \"否\", \"Value\": 0 }, { \"Text\": \"是\", \"Value\": 1}]";
            //}
        }
    }
}
